package com.yuncheng.oaApi.constant;

import org.apache.commons.lang3.StringUtils;

public class OaSpcyCommonConstant {

    /** 根据企业地址获取所在地市 */
    public static String getQyszdsByQydz(String qydz){
        if (StringUtils.isBlank(qydz)){
            return "";
        }
        if (qydz.contains("南宁")){
            return "南宁";
        }
        else if (qydz.contains("柳州")){
            return "柳州";
        }
        else if (qydz.contains("桂林")){
            return "桂林";
        }
        else if (qydz.contains("梧州")){
            return "梧州";
        }
        else if (qydz.contains("北海")){
            return "北海";
        }
        else if (qydz.contains("防城港")){
            return "防城港";
        }
        else if (qydz.contains("钦州")){
            return "钦州";
        }
        else if (qydz.contains("贵港")){
            return "贵港";
        }
        else if (qydz.contains("玉林")){
            return "玉林";
        }
        else if (qydz.contains("百色")){
            return "百色";
        }
        else if (qydz.contains("贺州")){
            return "贺州";
        }
        else if (qydz.contains("河池")){
            return "河池";
        }
        else if (qydz.contains("来宾")){
            return "来宾";
        }
        else if (qydz.contains("崇左")){
            return "崇左";
        }
        return "";
    }

    /** 企业材料 静态变量 */
    // 企业文件材料目录-有无意见
    public static final String QY_WJML_YWYJ_YES = "有意见";
    public static final String QY_WJML_YWYJ_NO = "无意见";

    public static final String QY_WJML_KCKZT_KD = "允许"; // 可读
    public static final String QY_WJML_KCKZT_BKD = "不允许"; // 不可读

    // 企业文件材料-已读状态
    public static final String QY_WJCL_YDZT_WD = "未读"; // 未读
    public static final String QY_WJCL_YDZT_YD = "已读"; // 已读

    // 企业文件材料-材料接收前后
    public static final String QY_WJCL_CLQSQHZT_JSQ = "0"; // 接收前
    public static final String QY_WJCL_CLQSQHZT_JSH = "1"; // 接收后

    // 是否中心上传
    public static final String QY_WJCL_SFZXSC_YES = "是";
    public static final String QY_WJCL_SFZXSC_NO = "企业";

    // 企业文件材料-材料类别
    public static final String QY_WJCL_CLLB_QYTJCL = "企业提交材料";
    public static final String QY_WJCL_CLLB_QTCL = "企业申报材料";
    public static final String QY_WJCL_CLLB_BQBZCL = "补齐补正材料";
    public static final String QY_WJCL_CLLB_BGCL = "整改材料";
    public static final String QY_WJCL_CLLB_QYCJCL = "企业撤件申请材料";

    // 企业文件材料-文件存放路径-父路径
    public static final String QY_WJCL_FILE_CFLJ_URL = "qywjcl";

    // 企业文件材料-文件备注
    public static final String QY_WJCL_BZ_BQBZCL = "补齐补正材料";
    public static final String QY_WJCL_BZ_ZGCL = "整改材料";
    public static final String QY_WJCL_BZ_CJCL = "撤件材料";

    // 企业文件材料目录
    public static final String QY_WJML_CLMC_DEFAULT = "其他材料"; // 默认材料-目录名称

    /** 法律法规 */
    public static final String YPZC_ZDWJ_ID = "001001";
    public static final String YPSC_ZDWJ_ID = "001002";
    public static final String YPLT_ZDWJ_ID = "001003";
    public static final String YLQX_ZDWJ_ID = "002";
    public static final String HZP_ZDWJ_ID = "003";

    /** 现场检查章节-完成状态 */
    public static final String FLFG_XCJCZJ_WCZT_WWC = "未完成";
    public static final String FLFG_XCJCZJ_WCZT_YWC = "已完成";

    /** 现场检查问题 - 严重程度(一般缺陷/主要缺陷/严重缺陷) */
    public static final String FLFG_XCJCWT_YZCD_YBQX = "一般缺陷";
    public static final String FLFG_XCJCWT_YZCD_ZYQX = "主要缺陷";
    public static final String FLFG_XCJCWT_YZCD_YZQX = "严重缺陷";

    /** 现场检查章节-数据库字段 */
    public static final String XCJZZJ_ZD_FJCMS = "FJCMS"; // 检查描述
    public static final String XCJZZJ_ZD_FDYCS = "FDYCS"; // 调用次数
    public static final String XCJZZJ_ZD_ID = "ID"; // 主键id

    /** 申请事项-文件目录 */
    public static final String SQSX_WJML_TYPE2_BT = "必填"; // 必填字段参数

    /** 申请事项-文件记录 */
    public static final String SQSX_WJJL_TYPE2_TBWDZ = "同步文档中";
    public static final String SQSX_WJJL_TYPE2_TBWDWC = "同步文档完成";

    public static final String SQSX_WJJL_TYPE3_ZZZ = "制作中";
    public static final String SQSX_WJJL_TYPE3_YSCPDF = "已生成PDF";
    public static final String SQSX_WJJL_TYPE3_YWC = "已盖章";
    public static final String SQSX_WJJL_TYPE3_YWC2 = "已完成";

    public static final String SQSX_WJJL_TYPE4_SDSC = "手动上传";
    public static final String SQSX_WJJL_TYPE5_SFYTS_YTS = "已推送";

    /** 公告: 是否置顶 / 有效状态 */
    public static final String NOTICE_SFZD_YES = "1";
    public static final String NOTICE_YXZT_YX = "有效";
    public static final String NOTICE_YXZT_WX = "无效";

    /** 系统权限菜单 组件参数 */
    public static final String MENU_HIDE_LIST = "菜单显示路由,公告"; // 隐藏菜单参数
    public static final String MENU_PROS_Is_View_KEY = "isViewMenu"; // 默认：显示
    public static final String MENU_PROS_Is_View_VALUE = "不显示"; // 不显示/显示

    public static final String MENU_PROS_Is_Subscript_KEY = "isSubscriptSelectSql"; // 默认：不显示
    public static final String MENU_PROS_Is_Subscript_VALUE = "显示"; // 显示/不显示
    public static final String MENU_PROS_Sql_Key = "selectSql"; // 查询sql参数

    public static final String MENU_PROS_Is_Open_KEY = "isOpenChildrenMenu"; // 是否打开子菜单 默认：打开
    public static final String MENU_PROS_Is_Open_VALUE = "不打开";


    /** 用户变更申请信息 */
    public static final String BGSQ_SHZT_ZC = "暂存";
    public static final String BGSQ_SHZT_WSH = "待审核";
    public static final String BGSQ_SHZT_YSH = "已完成";

    public static final String BGSQ_BGLX_GZDW = "工作单位";

    public static final String BGSQ_SFTYBG_YES = "同意";
    public static final String BGSQ_SFTYBG_NO = "驳回";

    /** 检查员-退休延聘解聘申请 */
    public static final String TXYPJP_SQLX_YP = "延聘";
    public static final String TXYPJP_SQLX_JP = "解聘";

    // 审核状态
    public static final String TXYPJP_SQ_SHZT_ZC = "暂存";
    public static final String TXYPJP_SQ_SHZT_WSH = "待审核";
    public static final String TXYPJP_SQ_SHZT_YSH = "已完成";

    // 是否已处理
    public static final String TXYPJP_SQ_SFYCL_YES = "是";
    public static final String TXYPJP_SQ_SFYCL_NO = "否";

    // 是否同意申请
    public static final String TXYPJP_SQ_SFTYSQ_YES = "同意";
    public static final String TXYPJP_SQ_SFTYBQ_NO = "驳回";

    /** 企业证件 */
    public static final String QY_ZJXX_WJLX_QYZJ = "企业证件";
    public static final String QY_JYJL_WJLX_JYJL = "检验记录";
    public static final String Qy_SB_ZB_ZC = "正常";
    public static final String QY_ZJXX_YXZT_YX = "有效";
    public static final String QY_ZJXX_ZJYXQ_CQYX = "长期有效";
    public static final String QY_ZJXX_ZJYXQ_YGQ = "已过期";
    public static final String QY_ZJXX_ZJYXQ_WGQ = "未过期";
    public static final String QY_ZJXX_ZJYXQ_JJGQ = "即将过期";
    public static final String QY_ZJXX_ZJYXQ_YSYX = "以上有效";
    public static final Integer QY_ZJXX_ZJYXQ_JJGQ_MONTH = 3; // 有效期提交几个月进行预警月份数量
    public static final Integer QY_ZJXX_ZJYXQ_YSYX_MONTH = 3; // 有效期几个月以上有效

    /** 生产环境预警 */
    public static final String QY_SCCJ_SCHJ_XYYJX = "预警";
    public static final String QY_SCCJ_SCHJ_DeYuYJX = "位于预警值";
    public static final String QY_SCCJ_SCHJ_ZC = "正常";
    public static final String QY_SCCJ_SCHJ_DeYuCBX = "位于超标值";
    public static final String QY_SCCJ_SCHJ_DaYuCBX = "超标";

    /**
     * 关键指标预警
     */
    public static final String QY_GJZB_YJ = "预警";
    public static final String QY_GJZB_CB = "超标";
    public static final String QY_GJZB_HG = "合格";

    /**
     * 企业逻辑有效状态
     */
    public static final String QY_RELATED_YXZT_YX = "有效";
    public static final String QY_RELATED_YXZT_WX = "无效";

    /** 企业文件目录类型 */
    private static final String QYWJML_TYPE_LIST = "质量管理体系文件|抽检不合格信息文件|不良反应信息文件|信用评级|设备确认信息|原料供应商审计|清洁验证|工艺验证|检查信息|产品偏差|变更控制|物料入库|检验记录|关键人员";

    /** 入库记录 */
    public static final String QY_RKJL_LX_RK = "购进";
    public static final String QY_RKJL_LX_CK = "使用";
    public static final String QY_RKJL_LX_QY = "取样";
    public static final String QY_RKJL_LX_HS = "耗损";

    /**
     * 党建学习资料
     */
    public static final String XXZL_ZLLX_LJXC = "廉洁宣传";
    public static final String XXZL_ZLLX_FZDYSC = "发展党员手册";
    public static final String XXZL_ZLLX_DJLLXX = "党建理论学习";
    public static final String XXZL_ZLLX_DJGZZD = "党建规章制度";
    public static final String XXZL_ZLLX_CXDRHD = "创新党日活动";

    /** 党建学习资料-发布状态 */
    public static final String XXZL_FBZT_CG = "草稿";
    public static final String XXZL_FBZT_YFB = "已发布";
    public static final String XXZL_FBZT_YXZ = "已下架";

    /**
     * 党日活动 - 完成状态
     */
    public static final String XXZL_DRHD_WCZT_WKS = "未开始";
//    public static final String XXZL_DRHD_WCZT_JXZ = "进行中";
    public static final String XXZL_DRHD_WCZT_YWC = "已完成";
    public static final String XXZL_SSDZB = "审评中心党支部";

    /** 会议计划 -有效状态 */
    public static final String HYJH_YXZT_YES = "启动";
    public static final String HYJH_YXZT_NO = "暂停";

    /** 会议计划 - 是否循环执行 */
    public static final String HYJH_SFXHZX_YES = "是";
    public static final String HYJH_SFXHZX_NO = "否";

    /** 会议记录 - 会议状态(未开始/已完成) */
    public static final String HYJL_HYZT_WKS = "未开始";
    public static final String HYJL_HYZT_YWC = "已完成";

    /**
     * 党务会议参加人员状态
     */
    public static final String HYJL_CJRY_ZT_ZC = "正常";
    public static final String HYJL_CJRY_ZT_QJ = "请假";

    /** 党费缴纳记录 */
    public static final String DF_JNJL_JFZT_DJF = "待缴费";
    public static final String DF_JNJL_JFZT_DRQ = "待确认";
    public static final String DF_JNJL_JFZT_YJF = "已缴费";


    /** 检查员有效状态 */
    public static final String JCY_STATE_YX = "有效";
    public static final String JCY_STATE_ZX = "注销";

    /** 检查员所属库 */
    public static final String JCY_SSK_LIST = "组长,组员,预备检查员";

    /** 检查员岗位id */
    public static final String JCY_GW_ID = "1714571764762820609"; // 岗位名称：检查员

    /** 检查员角色id */
    public static final String JCY_ROLE_ID = "1714571545316835329"; // 角色名称：检查员

    /** 申请事项-现场检查任务分配状态 */
    public static final String XCJC_RWFPZT_YFP = "已分配";

    /** 申请事项-材料审查-模式*/
    public static final String SQSX_CLSCMS_YES_XCJC = "1"; // 需要现场检查
    public static final String SQSX_CLSCMS_NO_XCJC = "2"; // 不需要现场检查

    /** 申请事项-自动选派定时任务-有效状态 */
    public static final int SQSX_YWXX_STATE_ZXZ = 0;
    public static final int SQSX_YWXX_STATE_END = 1;

    /** 预报名计划 */
    public static final String SQSX_YBMJH_BMZT_WKS = "未发布";
    public static final String SQSX_YBMJH_BMZT_BMZ = "已发布";
    public static final String SQSX_YBMJH_BMZT_YJS = "已结束";
    public static final String SQSX_YBMJH_BMZT_YZF = "已作废";
    public static final String SQSX_YBMJH_BMZT_BMRSYM = "报名人数已满";

    /** 预报名记录-选派状态 */
    public static final int SQSX_YBMJL_XPZT_WXP = 0;
    public static final int SQSX_YBMJL_XPZT_YXP = 1;

    /** 申请事项-预报名状态 */
    public static final String SQSX_YBMZT_YSQ = "已申请报名";
    public static final String SQSX_YBMZT_YLRBM = "已列入报名";

}
